<template>
    <div class="detail-view">
        
        <scrollNav2 ></scrollNav2>
        <div>
          
          <contentView id="contentView" ></contentView>
        </div>
        
        <footerView ></footerView>
    </div>
</template>
<script>
import scrollNav2 from '../../components/scrollNav2.vue'
import footerView from '../../components/footerView.vue'
import contentView from './components/contentView.vue'

  export default {
    name: 'DetailView',
    data() {
      return {
        courseDetail: {
          courseId: '' // 设置初始值
        }
      }
    },
    components: {
      scrollNav2,
      footerView,
      contentView
    },
    created() {
      /* getCourseDetail(this.$route.params.id).then(res => {
        this.courseDetail = res.data // 假设响应数据在 res.data 中
      }) */
      
     
    },
    /* async mounted() {
      const courseId = this.$route.params.id
      console.log(courseId)
      const res = await getCourseDetail(courseId)
      this.courseDetail = res.rows
    } */
  }
</script>
